package com.ssl.tensquare.base.pojo;

import com.ssl.tensquare.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 描述：标签实体类
 *
 * @author ssl
 * @create 2019/06/05 15:07
 */
@Getter
@Setter
@Entity
@Table(name = "`base_label`")
@SQLDelete(sql = "update base_label set del_flag = 1 where id = ?")
@Where(clause = "del_flag = 0")
public class Label extends BaseEntity {
    private static final long serialVersionUID = -6414997875292215084L;
    /**
     * 标签名称
     */
    private String labelname;

    /**
     * 状态
     */
    private String state;
    /**
     * 使用数量
     */
    private Long count;
    /**
     * 关注数
     */
    private Long fans;
    /**
     * 是否推荐
     */
    private String recommend;
}
